package com.voe.common;

public enum FileFormats {

	kFileFormatWavFile(1),
    kFileFormatCompressedFile(2),
    kFileFormatAviFile(3),
    kFileFormatPreencodedFile(4),
    kFileFormatPcm16kHzFile(7),
    kFileFormatPcm8kHzFile(8),
    kFileFormatPcm32kHzFile(9);
    
	public static FileFormats fromValue(int value) {
		for (int i=0;i<FileFormats.values().length;i++) {
			if(FileFormats.values()[i].getValue() == value)
				return FileFormats.values()[i];
		}
		return null;
	}

	/**
	 * Constructor.
	 */
	private FileFormats(int value) {
		this.value = value;
	}

	/**
	 * Get the value.
	 * 
	 * @return the value
	 */
	public int getValue() {
		return value;
	}

	private final int value;
}
